package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_deep_fishing_rod_update", autoSave = true)
public class LogDeepFishingRodUpdate {
    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "消耗金币")
    private int costCoin;
    @FieldTypeAnnotation(desc = "升级部件类型")
    private int type;
    @FieldTypeAnnotation(desc = "变更前等级")
    private int levelBefore;
    @FieldTypeAnnotation(desc = "变更后等级")
    private int levelAfter;
    @FieldTypeAnnotation(desc = "变更前金币")
    private long coinBefore;
    @FieldTypeAnnotation(desc = "变更后金币")
    private long coinAfter;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogDeepFishingRodUpdate(long userId, int activityId, int costCoin, int type, int levelBefore, int levelAfter, long coinBefore, long coinAfter, Date logTime) {
        this.userId = userId;
        this.activityId = activityId;
        this.costCoin = costCoin;
        this.type = type;
        this.levelBefore = levelBefore;
        this.levelAfter = levelAfter;
        this.coinBefore = coinBefore;
        this.coinAfter = coinAfter;
        this.logTime = logTime;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getCostCoin() {
        return costCoin;
    }

    public void setCostCoin(int costCoin) {
        this.costCoin = costCoin;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getLevelBefore() {
        return levelBefore;
    }

    public void setLevelBefore(int levelBefore) {
        this.levelBefore = levelBefore;
    }

    public int getLevelAfter() {
        return levelAfter;
    }

    public void setLevelAfter(int levelAfter) {
        this.levelAfter = levelAfter;
    }

    public long getCoinBefore() {
        return coinBefore;
    }

    public void setCoinBefore(long coinBefore) {
        this.coinBefore = coinBefore;
    }

    public long getCoinAfter() {
        return coinAfter;
    }

    public void setCoinAfter(long coinAfter) {
        this.coinAfter = coinAfter;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }
}
